package com.company.person;

import com.company.transport.Transport;

/**
 * @description:
 * @author: 任泉林
 * @date: Created in 2020/4/6 21:14
 * @version: ${VERSION}
 * @modified By:
 */
public class Person {
    private String id;

    public Person() {
    }

    public void driveVehicle(Transport transport) {
        System.out.print(this.id+"\t");
        transport.drivingMethod();
    }

    public Person(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
